package cutetd.model;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;

@PersistenceCapable ( identityType = IdentityType.APPLICATION, detachable = "true" )
public class M_News {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private Key naviKey;
	
	@Persistent
	private Text content;
	
	@Persistent
	private String title;
	
	@Persistent(serialized = "true")
	private M_User postUser;
	
	@Persistent
	private Date postDate;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Key getNaviKey() {
		return naviKey;
	}

	public void setNaviKey(Key naviKey) {
		this.naviKey = naviKey;
	}

	public Text getContent() {
		return content;
	}

	public void setContent(Text content) {
		this.content = content;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public M_User getPostUser() {
		return postUser;
	}

	public void setPostUser(M_User postUser) {
		this.postUser = postUser;
	}

	public Date getPostDate() {
		return postDate;
	}

	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}
}
